/**
 * Created by bai on 2015-10-16.
 */
app.controller('MyController', function ($scope) {
    $scope.person = {name: "Ari Lerner"};
    var updateClock = function () {
        $scope.clock = new Date();
    };
    var timer = setInterval(function () {
        $scope.$apply(updateClock);
    }, 1000);
    updateClock();
});